class Loginage(object):
    def __init__(self,username,password,code):
        self.username = username
        self.password = password
        self.code = code

    def login(self):
        print(f'登录名为{self.username}')

        print(f'密码为{self.password}')

        print(f"验证码{self.code}")
        print('点击登录')

l1 = Loginage("admin","123456",8888)
l1.login()

print(l1)